﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.mssql;

namespace SharpSqlAnalyzer.stmt.mssql
{
	// Token: 0x02000160 RID: 352
	public class TMssqlBeginDialog : TCustomSqlStatement
	{
		// Token: 0x06000BFC RID: 3068 RVA: 0x00306D28 File Offset: 0x00304F28
		public TMssqlBeginDialog(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmssqlbegindialog;
		}

		// Token: 0x06000BFD RID: 3069 RVA: 0x00306D39 File Offset: 0x00304F39
		internal override void buildsql()
		{
		}

		// Token: 0x06000BFE RID: 3070 RVA: 0x00306D3B File Offset: 0x00304F3B
		internal override void clear()
		{
		}

		// Token: 0x06000BFF RID: 3071 RVA: 0x00306D3D File Offset: 0x00304F3D
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000C00 RID: 3072 RVA: 0x00306D44 File Offset: 0x00304F44
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x06000C01 RID: 3073 RVA: 0x00306D48 File Offset: 0x00304F48
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TMssqlBeginDialogSqlNode tmssqlBeginDialogSqlNode = (TMssqlBeginDialogSqlNode)this.rootNode;
			base.doParseStatement(psql);
			this.dialogHandle = tmssqlBeginDialogSqlNode.DialogHandle;
			this.initiatorServiceName = tmssqlBeginDialogSqlNode.InitiatorServiceName;
			this.targetServiceName = tmssqlBeginDialogSqlNode.TargetServiceName;
			return 0;
		}

		// Token: 0x06000C02 RID: 3074 RVA: 0x00306D98 File Offset: 0x00304F98
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000C03 RID: 3075 RVA: 0x00306DA8 File Offset: 0x00304FA8
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x17000230 RID: 560
		// (set) Token: 0x06000C04 RID: 3076 RVA: 0x00306DB8 File Offset: 0x00304FB8
		public virtual TObjectName DialogHandle
		{
			set
			{
				this.dialogHandle = value;
			}
		}

		// Token: 0x17000231 RID: 561
		// (set) Token: 0x06000C05 RID: 3077 RVA: 0x00306DC1 File Offset: 0x00304FC1
		public virtual TObjectName InitiatorServiceName
		{
			set
			{
				this.initiatorServiceName = value;
			}
		}

		// Token: 0x17000232 RID: 562
		// (set) Token: 0x06000C06 RID: 3078 RVA: 0x00306DCA File Offset: 0x00304FCA
		public virtual TObjectName TargetServiceName
		{
			set
			{
				this.targetServiceName = value;
			}
		}

		// Token: 0x040012CB RID: 4811
		private TObjectName dialogHandle;

		// Token: 0x040012CC RID: 4812
		private TObjectName initiatorServiceName;

		// Token: 0x040012CD RID: 4813
		private TObjectName targetServiceName;
	}
}
